package com.hl.toolkit.server.tycoin.account.slaveentity;
// Generated 2017-5-20 22:33:23 by Hibernate Tools 4.0.0.Final

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.tycoin.common.entity.AbstractEntity;
import com.tycoin.user.slaveentity.TycoinUser;

import javax.persistence.*;
import java.math.BigDecimal;

@Entity
@Table(name="tycoin_account_recharge")
@JsonIgnoreProperties({ "handler","hibernateLazyInitializer" }) 
 public class TycoinAccountRecharge extends AbstractEntity implements java.io.Serializable {

 	
	/**
	 * 
	 */
	private static final long serialVersionUID = -6882155059933469775L;

	@Column(name = "logno")
 	private String logno;
	
	@Column(name = "user_id")
	private String userId;
	
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "user_id", insertable = false, updatable = false)
	private TycoinUser tycoinUser;// 所属剧头，针对剧头
	


	@Column(name = "date_time")
	private long dateTime;


	@Column(name = "money")
	private String money;//金额，单位，分
	
	@Column(name = "moneyfloat")
	private float moneyfloat;//金额，保留两位，单位元
	
	@Column(name = "avail")
	private BigDecimal avail;
	
	@Column(name = "fee")
	private String fee;
	
	@Column(name = "payment_id")
	private String paymentId;
	
	@Column(name = "shop_trade_no")
	private String shopTradeNo;
	
	
 
	public String getShopTradeNo() {
		return shopTradeNo;
	}

	public void setShopTradeNo(String shopTradeNo) {
		this.shopTradeNo = shopTradeNo;
	}

	@Column(name = "payment_time")
	private String paymentTime;
	
	@Column(name = "return_text")
	private String returnText;
	
	@Column(name = "type")
	private String type;
	
	@Column(name = "is_online")
	private String isOnline;
	
	@Column(name = "remark")
	private String remark;
	
	@Column(name = "verify_userid")
	private String verifyUserid;
	
	@Column(name = "verify_time")
	private String verifyTime;
	
	@Column(name = "verify_remark")
	private String verifyRemark;
	
	@Column(name = "verify_content")
	private String verifyContent;
	
	@Column(name = "addtime")
	private String addtime;
	
	@Column(name = "addip")
	private String addip;
	
	@Column(name = "payment_status")
	private int paymentStatus;//0：待支付，1：成功，2：失败，3：撤销，4退款，5异常
	
	
	@Column(name = "shop_notif_url")
	private String shopNotifUrl;//商家异步请求回调地址
	
	
	public String getShopNotifUrl() {
		return shopNotifUrl;
	}

	public void setShopNotifUrl(String shopNotifUrl) {
		this.shopNotifUrl = shopNotifUrl;
	}

	@Column(name = "sign_imglist")
	private String signImglist;
	
	public String getSignImglist() {
		return signImglist;
	}

	public void setSignImglist(String signImglist) {
		this.signImglist = signImglist;
	}

	public int getIsMycharge() {
		return isMycharge;
	}

	public void setIsMycharge(int isMycharge) {
		this.isMycharge = isMycharge;
	}

	@Column(name = "pay_mode")
	private int payMode;//1.微信支付，2.支付宝，3.百度钱包，4.QQ钱包，5.京东钱包
	
	
	@Column(name = "drawee_sign" ,columnDefinition="INT default 0")
	private int draweeSign; //收款人，0未签字，1已签字
	
	@Column(name = "payer_sign" ,columnDefinition="INT default 0")
 	private int payerSign;//付款人，0未签字，1已签字
	
	@Column(name = "is_mycharge" ,columnDefinition="INT default 0") //是否是我的账户充值，0否，1是
	private int isMycharge;
	

	public int getDraweeSign() {
		return draweeSign;
	}

	public void setDraweeSign(int draweeSign) {
		this.draweeSign = draweeSign;
	}

	public int getPayerSign() {
		return payerSign;
	}

	public void setPayerSign(int payerSign) {
		this.payerSign = payerSign;
	}

	public int getPayMode() {
		return payMode;
	}

	public void setPayMode(int payMode) {
		this.payMode = payMode;
	}

	public TycoinAccountRecharge() {
	}

	public TycoinAccountRecharge(String logno, String userId,  String money, BigDecimal avail, String fee,
			String paymentId, String paymentTime, String returnText, String type, String isOnline, String remark,
			String verifyUserid, String verifyTime, String verifyRemark, String verifyContent, String addtime,
			String addip, int paymentStatus) {
		this.logno = logno;
		this.userId = userId;
 		this.money = money;
		this.avail = avail;
		this.fee = fee;
		this.paymentId = paymentId;
		this.paymentTime = paymentTime;
		this.returnText = returnText;
		this.type = type;
		this.isOnline = isOnline;
		this.remark = remark;
		this.verifyUserid = verifyUserid;
		this.verifyTime = verifyTime;
		this.verifyRemark = verifyRemark;
		this.verifyContent = verifyContent;
		this.addtime = addtime;
		this.addip = addip;
		this.paymentStatus = paymentStatus;
	}

	public TycoinUser gettycoinUser() {
		return tycoinUser;
	}
	
	public void settycoinUser(TycoinUser tycoinUser) {
		this.tycoinUser = tycoinUser;
	}

	public String getLogno() {
		return this.logno;
	}

	public void setLogno(String logno) {
		this.logno = logno;
	}

	public String getUserId() {
		return this.userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	 
	public String getMoney() {
		return this.money;
	}

	public void setMoney(String money) {
		this.money = money;
	}

	public BigDecimal getAvail() {
		return this.avail;
	}

	public void setAvail(BigDecimal avail) {
		this.avail = avail;
	}

	public String getFee() {
		return this.fee;
	}

	public void setFee(String fee) {
		this.fee = fee;
	}

	public String getPaymentId() {
		return this.paymentId;
	}

	public void setPaymentId(String paymentId) {
		this.paymentId = paymentId;
	}

	public String getPaymentTime() {
		return this.paymentTime;
	}

	public void setPaymentTime(String paymentTime) {
		this.paymentTime = paymentTime;
	}
	
	 
	public String getReturnText() {
		return this.returnText;
	}

	public void setReturnText(String returnText) {
		this.returnText = returnText;
	}

	public String getType() {
		return this.type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getIsOnline() {
		return this.isOnline;
	}

	public void setIsOnline(String isOnline) {
		this.isOnline = isOnline;
	}

	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getVerifyUserid() {
		return this.verifyUserid;
	}

	public void setVerifyUserid(String verifyUserid) {
		this.verifyUserid = verifyUserid;
	}

	public String getVerifyTime() {
		return this.verifyTime;
	}

	public void setVerifyTime(String verifyTime) {
		this.verifyTime = verifyTime;
	}

	public String getVerifyRemark() {
		return this.verifyRemark;
	}

	public void setVerifyRemark(String verifyRemark) {
		this.verifyRemark = verifyRemark;
	}

	public String getVerifyContent() {
		return this.verifyContent;
	}

	public void setVerifyContent(String verifyContent) {
		this.verifyContent = verifyContent;
	}

	public String getAddtime() {
		return this.addtime;
	}

	public void setAddtime(String addtime) {
		this.addtime = addtime;
	}

	public String getAddip() {
		return this.addip;
	}

	public void setAddip(String addip) {
		this.addip = addip;
	}

	public int getPaymentStatus() {
		return this.paymentStatus;
	}

	public void setPaymentStatus(int paymentStatus) {
		this.paymentStatus = paymentStatus;
	}
	
 	public long getDateTime() {
		return dateTime;
	}

	public void setDateTime(long dateTime) {
		this.dateTime = dateTime;
	}
	 
		public float getMoneyfloat() {
			return moneyfloat;
		}

		public void setMoneyfloat(float moneyfloat) {
			this.moneyfloat = moneyfloat;
		}

}
